Added test for comparator
Added test for comparator