update test to cleanup listener