Implement a class Calculator in a file called /app/solution.py that provides basic arithmetic operations. The class should have the following functionality:
Addition: Implement a method add(self, a: float, b: float) -> float that returns the sum of a and b.
Subtraction: Implement a method subtract(self, a: float, b: float) -> float that returns the result of subtracting b from a.
Multiplication: Implement a method multiply(self, a: float, b: float) -> float that returns the product of a and b.
Division: Implement a method divide(self, a: float, b: float) -> float that returns the result of dividing a by b. If b is zero, the method should raise a ValueError with the message "Cannot divide by zero."
Exponents: Implement a method power(self, base: float, exponent: float) -> float that returns the result of raising base to the power of exponent.
The class should also include a method clear(self) that resets any internal state (if applicable), ensuring that subsequent operations do not carry over from previous calculations.
Ensure that all methods handle floating-point numbers and that the implementation adheres to Python's standard conventions. After completing the implementation, run the included test suite to verify that all functionalities are correct.