fixing statistics tests