fix async dependency problem, fix node unit for npm test.