[tests]several improvements on test-multiple-clients.sh