Adding a simple test for toHtml.