Testing asynchronous code in AngularJS using Jasmine (without using mocks)