Finished fixing E2E tests

Involved numerous fixes to stderr mocking, handling of the exec context, and
expected error messages for cases in which the StreamContext has been dropped.