fix html safe test helper