make a test case that checks all top-level menu items
fix a problem with invalid linkd files that set a vertex as its own parent