Fix a regression which could cause test to fail under some circumstances because hash ordering is not guaranteed. Part of LIBCLOUD-245.