agent: add test coverage for AgentReconciler

Take a look now and see what you think.