r3085: make the RAW-WRITE tests more robust to errors in previous parts of the test