fix the event unit tests