MDL-63185 core_test: add set_user function to behat