fix tests for stats