Extract and test HierarchicalRelationships