Webtests cleanup and fixes (used helper functions)

used helper functions of CiviSeleniumTestCase and code cleanup