Fixing login tests by making signInRequest reject a promise if necessary