Improve html.parser tests