Tests cleanup html content is encoded before spawn process