Fix test for output order independence