Moved listener creation to beforeAll callback hook