Updated Agent actor and corresponding AgentTest.