Added read/write integration tests.