[FUNCTOR-12] Added more tests to core comparator classes. Also removed unreachable code, as it could not be tested and was immutable and created/validated during construction.