Added tests for the ByteStream constructor