Merge "Add test for a pty kernel bug." into nyc-mr1-dev