Add tests on getMaximum method.