test: fixed process_title failing on linux.

Shortened the test string from 40 to 38 characters,
because the title length is limited to 39 characters.

Trunctation of long titles was introduced intentionaly
by commit joyent/libuv@a0c1d84 (see discussion in joyent/node#5006).
test: Improved error logging in TTY unit-test.