Test refactor. Moved  $_SERVER['HTTP_HOST'] operations to tearDown and setUp methods.