refactor destroy event test