added tests for graph helpers