agent: add test coverage for AgentReconciler

Can you explain the bug here? I don't get it.