Same tempfile trick on the map factory test.