[SJS-170][TEST][BUG]: Fixed bugs for socket test script