Read/write snapshot test