using custom eventlistener to run tests