testing detaching event callbacks