testing domain name middleware