Implement a Python class Calculator in the file /app/solution.py that performs basic arithmetic operations: addition, subtraction, multiplication, and division. The class should have the following methods:
add(x: float, y: float) -> float: Returns the sum of x and y.
subtract(x: float, y: float) -> float: Returns the result of subtracting y from x.
multiply(x: float, y: float) -> float: Returns the product of x and y.
divide(x: float, y: float) -> float: Returns the result of dividing x by y. If y is zero, the method should raise a ValueError with the message "Cannot divide by zero."
Each method should accept two float parameters and return a float result. The class should be capable of performing these operations correctly based on the given inputs, and it should raise the specified error for invalid operations. Ensure that all edge cases are handled appropriately.
Make sure to write unit tests that will verify that the Calculator class behaves as expected.