fixed truncate, comparator in tests