Update test_html_content to use helper