add test of graph