Fix test on python3

In python3 the unittest.TestCase.assertItemsEqual method was renamed to
assertCountEqual.