Fix log overwrite test.