Use httptest.Server instead of net.Listener for test server.