waiting for service startup in test, to avoid RPC messages getting lost