Test using net/http/httptest

(a lot more to do)