added test against comparator usage