Extension of Jasmine unit tests to support Promises for async unit tests