httptesting: add Do parameter

Also fix the tests and make them run.