httptesting: add DoRequest parameter

Also fix the tests and make them run.
Nice!