Fix core tests

Adjust test graph to map nodes since the new havel hakimi algorithm generates different node ordering