test: fix for unit-tests failing on Linux

 * fixed process_title() test
 * improved logging in test-tty.c to simplify troubleshooting