Use temporary file instead of named file in aiaprep test.