Fix test code for checking the value of "lhost"