Following the separation out of reading and writing tests in #1002, it should be fairly straightforward to test this.