Improve error handling in test cases intended for checking TTY environment model specification
Detected in build:
Published in build:
Yet another consequence of #11810 is revealing some issues with an error handling in test cases intended for checking the TTY environment model specification. Let's fix them.