Merge "Add api version detection support to glance tests."