added more tests for graph