How is this function seeing if state is properly reset?  I guess it checking that get_html doesn't throw an exception, and that it returns a string?  What else might it return? This seems like an indirect and weak check that the state is properly reset.