refactoring mocks