Ensure $httpBackend is flushed for Angular promise tests

This is the workaround for #6 that I'm using in my project. I'm not sure if this is the best solution but it does seem to work...