tests for client and server