[tests] Use tmp_path fixture modular tests
#13194
+52
−61
Merged