fix error in httpLog ctor and add test for constructing with IncomingMessage