Mock http request

Hi.
I add some test and add mock for http request with `mock-http-server` library.