t5802: add test for connect helper