Fix compilation of Twitter tests and upgrade HtmlUnit

This also fixes a couple of deprecation warnings since getElementById was deprecated