readbytes tests