pseudo terminal for test using pty.js