Unit tests for HtmlElement