Add node to graph in test.