add comparator tests for `TreeSet`