Mock getTask with nock