triplet sorter tests fixed