Test the event listener.