* Added unit tests for the ReadBytes method in ByteStream.
* Fixed a bug in the ReadBytes method in ByteStream where the the
returned buffer size was wrong in some instances.