fix testAddGraph