fix connect test