TST: use numpy.testing in test_hierarchy.py

Just some maintenance.