Fixed ByteStream unit tests so they pass