Test case for uniqueness validation