Here I create the listener in beforeEach so I remove it in afterEach. Previously I created the listener in each individual test so I removed it in each test.