fix test suite to catch non-safe html
fixes #1283