Fixed 2 tests

Fixed errors when preventing an event that hasn't been triggered.