Fix unit test that was failing because it sometimes couldn't read its own writes.
Fix another unit test that was sometimes failing when it couldn't read its own writes.