Improve the situation of tests' temporary files.