Client socket code tests