Fixes unstable broken test for events.