Add tests for StatsMixin.