testing anomaly detection