Mock Promise to be able to run tests in IE.