Replacing http-mock by nock