Fix unit tests since anomaly_detection_metrics is a new parameter