Fix the new test added to the event dispatcher tests