Better connectivity test script