Update check files due to reversion of a libcurses change.
Update the check files due to bug fix in libcurses.
Merge in code from Google Summer of Code project which dramaticallyincreases the number of tests performed.Thanks to Naman Jain <jnaman806@gmail.com> for his excellent work onthis GSoC project.