Http tests

I added some tests for the `http` module, as well as some general infrastructure. There are more tests to write, of course.