make the test not rely on array order