change tests to use httptest.Server

instead of hardcoding port 9090, use the httptest package which will
automatically select an unused port.