updated graph testcase and some bug fixing for new graph structure
graphtest case up to date for graph impl