Fix unique index test