test listener handler