Fixes for behat + adding a new test for events.