Changed the expected message in generateAndThenValidateEvent function to the correct one