understand 'nsplit' semantics better and fix a randomly failing test case