tried to add test for collapseDuplicates, but not working...