TEST: adding tempfile to export_csv doctest