add unit test for graph package.