Correct test for getmaxnodelen

The previous behavior must have been a bug from a previous release.