Assert: to the $onFailure handler is passed AssertException object