add tests for heirarchy container