vhost: test updated code which fixes scope issues