Fix a logic error in the events e2e test.