Improve precision of result for fail/success patterns
Test case cleanup
Avoid too eager sending of message to resumed shell after a shell switch