MDL-50163 behat: Return subcontext from session