Fix error event triggering * test.