Fix tests for unique indices.