split out portion of test program into official lib
set/get node as string and a few other fixes