Fix node ranges in the test framework.
Merge pull request #5237

2db4c8a Fix node ranges in the test framework. (Daniel Kraft)