Move agent connection failure tests to better module.