test eventDispatcher