Improve test coverage in StatisticTest