test/lib_read_write: increase test reliability