cosmetic fixes to the http server code (mostly in test)