MDL-48302 behat: Reverted temp fix added by MDL-48251