PTY tests