Improve agent_controller tests and documentations