added test for graph core class