tidy up global state modification in test
add basic support for node module prefetching

node module prefetch configuration is now supported and
node module files in root node modules folder can be loaded