renamed test for dom2html and fixed variable scope. also added test for api completeness