Added test for NameComparator