improve with_html_safe test helper