mocked service test