Fixes tests in test_format.py

This pull request was not accounting for the formatting in the
HTML_FOOTER constant.

Fixes #9