Tests that a test will properly exit if it has an asynchronous error. TEST ENDED IN ERROR: This error is expected