def check_historical(previous_downs, current_downs):
    """
    Runs a comparison check between two failed ping test dictionaries to determine whether the
    tests have recently failed, recovered or in a recent warning state.

    Parameters:
        previous_downs - dictionary of previously failed and warn status tests
        current_downs - dictionary of currently failed and warn status tests

    Return:
        history - recent test status dictionary
    """
    
    print("Previous Downs", previous_downs)
    print("Current Downs:", current_downs)

    history = {"recent_fail" : [i for i in current_downs["DOWN"] if i not in previous_downs["DOWN"]]}
    print("Recently Failed:", history["recent_fail"])

    history["recent_warn"] = [i for i in current_downs["WARN"] if i not in previous_downs["WARN"]]
    print("Recently Warn:", history["recent_warn"])

    # Looks through all WARN and DOWN Instances
    history["recovered"] = [h for i in previous_downs for h in previous_downs[i] if h not in current_downs[i]]
    print("Recently Recovered:", history["recovered"])
    
    return history