tests: Don't use /dev/tty

The behavior on OSX is different - we don't get a I/O error so the test is
useless.