Avoid hardcoding /tmp for better test isolation

[#82968904]