Added mocks for testing stats api.