added test cases for stats