Merge pull request #648 from XJDKC/graph_ut

Unit test cases for computational graph.