Test for service mocking