Issue #2385181 follow-up: Minor test fix
Ensure agents are paused when necessary since they are no longer automatically paused on changes
Add the agent to the queue item, fixed tests, add test for pausing agents
Incorporating code review feedback