Beginning of test connection_manager