added functionality to create remote sessions from functional tests