Improve agent_connections tests and documentation