Make all tests that create a temporary file in the local directory get the path from one central function, so they can be made to use an absolute path