testing hierarchical entity trees