adding a test class for an event listener