added unittests for NodeEnviroment