Use a common setup in the tests

We use the same nodes in both tests (and probably in the ones to come
later) so let's create the nodes and the edges in a common setup stage.