Implement a class Calculator in the /app/ directory that performs basic arithmetic operations. The class should have the following methods:
add(a: float, b: float) -> float: This method should return the sum of two numbers a and b.
subtract(a: float, b: float) -> float: This method should return the difference when b is subtracted from a.
multiply(a: float, b: float) -> float: This method should return the product of two numbers a and b.
divide(a: float, b: float) -> float: This method should return the result of a divided by b. If b is zero, it should raise a ValueError with the message "Cannot divide by zero."
The Calculator class should handle both integer and float inputs, and the return values should be of type float.
Ensure that all methods are tested to confirm correct functionality, including edge cases such as division by zero.