Tests for methods listDiff() and unionBy().