Add test for writeStuffedByte and readStuffedByte