Test client and server