add test to package.json, complete node js config loader