Add test coverage for unique indexes