Test the read and write data