fixing failed unit test testStat