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.
Merge pull request #541 from kelseyhightower/httplog_test

add tests for the httplog package