impl
improve test
Merge pull request #610 from zeitos/fixForwardReferenceInHierarchies

Fix forward reference in hierarchies