Fixed failing test due to missing uniqueIndex