[PATCH v2 00/32] Improve handling of test temporary files