added test for rejecting transitions using a rejected promise