Get test_tty_sync to the point where it can read, write, open and close.