Read and write tests updated