Fix hierarchy test