fixed tests: assertItemsEqual must compare sorted lists