made test client more flexible, can choose server and count of messages