test for server and client