add test to deleting listener