test_agent_controller class fixed