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