added comparator tests