test that produced json is the same as passed in graph