tests for graph