Use nock in the tests instead of doing real http calls