Added test of as_html