pty_shell passes unittests with file staging