Add test for event listener