exception: raise OSError only if ret < 0
test: fix property getter

should convert bytearray to byte to unpack