Add test for SQL and unique index (#1824)

Add test for SQL and unique index (#1824)