test ok for read and write