Use setTimeout in the notresolved test because the event emitter is async as well.