check that getHtml is called with the correct arguments.