Add tests on getAverage method. Fix tests on getMedian method.