Tests host-setting in EphemeralSocket.