better html_safe tests copied from temple