Refactor test code for get_html() #17