fix events.delete test cases