Why does this test work?

I thought the code scopes the uniqueness of a category name inside the same parent.
So this should only error if `named_category1` and `named_category1` have the same parent.