Improve the node load script and add tests for it.