Added tests for processHtml