Join up the pieces

We now calculate what should be local and remote nodes and return those
values, with a successful test.