Implemented hierarchy test