Merge pull request #58 from pratik-joshi/webtests-cleanup

webtest cleanup and code improvement
Merge branch 'master' of git://github.com/civicrm/civicrm-core into webtests-cleanup
webtest cleanup and code improvement(using helper function)