Fixed a minor bug of constructing test graph data.