Modify tests to use a local temp directory. Continue in the face of some file errors.