added deprecation warning check to test_hierarchial.py