Ensure unique attribute checking works for naive models.