added tests for unique validation