Refactored some of the webdriver tests to use HTMLUnit