Add test for title before outputting an H1.

Resolves issue #93.