Convert ThrowingComparator to ThrowingFunctionalInterface, plus tests