Add final tests for Graph.