Added a test to check we do have a tty (and not a pipe in).