Added some tests for methods in html.py