fix test_connect_api_v3