Assert on temporary file creation