Don't use asynchronous events in unit tests