Added GetIndentHierarchy and tests