Test custom comparator with HFile.