This corrects test cases in two important ways:
1.  Expect.pm was raising warnings with development versions of IO::Pty, so I had to remove the requirement of no warnings to pass.
2.  Some versions of OSX had a version of echo incompatible with our test cases, so I switched to perl -e instead.