Use to test asynchronous events