Make sure the the promise is reject with an Error-instance