bytesRead,bytesWritten -> bytes
fixed tests