socket test script