Building the test listener class