Add TestRenderAsHtml test