Test Unique permutation