a few tests for OSHTTPClient
and a bunch of random fixes found by them.