[fix] minor fix for run `npm test` and go well and all test pass

Minor problems when tried to run `npm test` otherwise is working fine for me by now.