test: avoid unnecessary temporary files