When iterating through a spawned command's response if checked Expext::match() against nul or being defined.
This test always failed because the last match() wasn't reset by expect().
IMHO it should undefine the match before checking for a new match as was done with the error status.
Valid suggestion, wil look into it.