NodeTest converted to lambda functions

Uses Lambda functions to call the subtests
Easier to add new tests
Merge pull request #4812 from ricardoquesada/node_test_fixes

NodeTest converted to lambda functions