testsuite: fixed local implementation of assertItemsEqual