making mocks work with services