refactored vhost redirection unit tests again