add testcases for etree.htmlfile