resolved promise correctly in service calls, tests and app work