figured out how to unit test mocked services with promises. the first method of def_model is now testable