add tests for the httplog package

Currently there are no tests for the httplog package. This patch adds
an initial set of tests and improves test coverage.