add npm test script, fix indent