got the tests working with the listener