[BUG] Test case for issue #1527

This PR adds a test case for issue #1527

Uniqueness validator incorrectly fails validation