Fixes bug in test_connection_manager.