Completed unit testing coverage for the ByteStream class.