fix undefined project root
change npm test script