Add tests for escaped / plain text webpages

Change-Id: Ia0adeff41a84508d170f12d51bbd944662763977
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/3837
Reviewed-by: Henry Robinson <henry@cloudera.com>
Tested-by: jenkins