test host and client