add unit test for remove listener