Added test for unique indexes