Improve anomaly detector test clarity and boundary coverage in pkg/agentdrain
#27107
+81
−27
pkg/agentdrain
#27107