modify hdfs locales test  to make sure that we return the same order of locales independent of where we query