Implement a class called Calculator in the file /app/calculator.py that provides basic arithmetic operations. The class should include the following methods:
add(a: float, b: float) -> float: This method should return the sum of a and b.
subtract(a: float, b: float) -> float: This method should return the result of subtracting b from a.
multiply(a: float, b: float) -> float: This method should return the product of a and b.
divide(a: float, b: float) -> float: This method should return the result of dividing a by b. If b is zero, the method should raise a ValueError with the message "Cannot divide by zero."
Ensure that the Calculator class is properly tested to validate each of the operations. The implementation should handle decimal numbers correctly. The methods should be defined as part of the Calculator class, and documentation strings should be included for each method describing their functionality.