Testing cancelEvent.