test client for send and receive