fix test so that it doesn't depend on the array order