test creating graph