uniq functionality done with test cases