Adding a test to NodeSplit + some NodeSplit refactoring.