Adding tests for template and for to_html