Add tests for print_tty and print_ascii(tty=True)

Had to monkey patch isatty()