Use Nock to mock network calls in tests