make event listener test case works