Add tests for isHTMLDocument() #47