fix starting cli in testnet docker image
docker image with embedded testnet is randomly not starting, with this we properly wait for testnet to start (timeout 120 seconds still applies)
docker image with embedded testnet is randomly not starting, with this we properly wait for testnet to start (timeout 120 seconds still applies)