behat and test environment fixes