I have this tests, where I want to wait until a promise (in this case ClickHandler) has been called an rejected. Then I want to verify the state. The test however fails beca