adding test cases for stats and fixing bugs