Use httptest

This lets us do away with the network traffic and listening on an
interface.