test listener class