test: check pty allocation for shell()