Behat tests for events

#5051