add the snippet to test the uniqueness validation