def regulate_column_names(df, test_type):
    """
    Regulate column names for flu_ag test data since Quidel changed their column names multiple times.

    We want to finalize the column name list to be:
        ['SofiaSerNum', 'TestDate', 'Facility',
        'Zip', 'FluA', 'FluB', 'StorageDate']
    """
    # No regulation needed for covid_ag test data
    if test_type == "covid_ag":
        return df

    if "AnalyteResult1" in df.keys():
        df = df.rename({"AnalyteResult1": "FluA",
                        "AnalyteResult2": "FluB"}, axis=1)
    elif "Result1" in df.keys():
        df = df.rename({"Result1": "FluA", "Result2": "FluB"}, axis=1)
    if "Zip" not in df.keys():
        df = df.rename({"ZipCode": "Zip"}, axis=1)
    return df