test for attributegroup hierarchy
keeping groups one level initially