Fix nock and npm test