add tests for Listener