When the html_safe was moved, I think it changed the escaping in this test and caused the failure. Better now.