Added failing unit test for unique constraints