Add readPacket unit test

Add a unit test for readPacket as used by ServerConnection.

Change-Id: I8117152b2429407b9d41d146facb63fb70a185f7