pty tests added.
run_tests.py added.