fix flakiness in getting session in appium testsuite