comparator factory test