added/changed test using nock.

- Recording was not fancy as VCR. It needs capturing request manually by adding `nock.recorder.rec();` code and add the captured code to the test.
- Please regard this commit as the start point in using nock. It needs improvement.