Add read/write/read tests