Refactored webtests for better structure and usage.