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.