Example of comparator on arrays (+ unit tests).