test: fix tests after ECONNRESET patch

Reviewer: @isaacs or @bnoordhuis