fix test_hgraph