split test into read and write.