updating unit tests in statistics