don't read from tty in test mode