Iterate over values in assertListEquals

assertListEquals had a typo where only the first elements of each list
would be checked for equality.

Because of the short lists that are used with this assertion, it may be
better to replace the loop with:
  assertArrayEquals(left.toArray(), right.toArray())