Fix test case failures when running tests without a controlling tty

Then /dev/tty cannot be opened, and t_testbed_dev_access() fails.
release 0.8.4