@jlsherrill it assumed, that returned['state'] holds the expectation message. Good catch @ehelms!