move TestSampleStat to test package