MDL-42282 Behat: converted MDLQA-509 to behat test