agent: add test coverage for AgentReconciler