Webtests cleanup

webtest cleanup and code improvement - used helper functions of CiviSeleniumTestCase.php