added a fail_undefined step, fixed some issues with input buffer setups and EOT characters, fixed deadlock in should_return steps