Unit Testing Promises Using Jasmine, Mocha, Chai and Karma