tests for GraphModel