implement mocks for tests