tests: TEMP_DIR creation is based on PID (reverts ed9da2)