add HtmlRenderer test.
simplify PlainRenderer.