WIP: fix tty test