test cases for uniq