Some improvements of random fsm test script.
Enable setting ZMQ transport.