Finish unittesting message stream class for now.
Did some small changes in ClientLibTest and in message stream