Make test_legacy_connections work standalone.