[PATCH v4 00/12] Improve handling of test temporary files