Fixed testing to use Nock for fake http requests