Fix node ranges in the test framework.

Fix errors in the node ranges when working with a split network.  This had no negative effect so far apparently, but it was definitely wrong and is now correct (as intended).