Creates unit test for Category.hierarchy.