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
Tweaks to get the tests running inside an Android apk