Some more tests on client server communication.

There is a problem now, which is think is that when a client connects
and sends a message to the server, it need to initialise the socket at
the start so that we can also monitor any reponse from the server separately.