added serialization test for long value
more detailed debug output

* replaced more system.err statements with exceptions
* added ClientServerCommunicationTest that launches server and client and exchanges one message