@Tom, we can also consider using this jasmine-as-promised to test promises. https://github.com/ThomasBurleson/jasmine-as-promised