updated hierarchy test