     }
 
     func testReadUInt8WithSmallBuffer() {
-        let bytes = random(100)
+        let bytes = [0xcc] + random(99)
         let stream = InputStream(data: Data(bytes: bytes))
 
         do {

    }

    func testReadUInt32BEWithSmallBuffer() {
        let bytes = random(100)
        let stream = InputStream(data: Data(bytes: bytes))

        do {

    }

    func testReadUInt16LEWithSmallBuffer() {
        let bytes = [0xcc] + random(99)
        let stream = InputStream(data: Data(bytes: bytes))

        do {
