Fix attempt to write to tmp from tests.