updated test to check for hostname to proxy