You can see those tests here:
http://seclists.org/oss-sec/2012/q2/att-504/3-2-sql-injectio...
(this is for 3.2, you can change the patch name for 3.1, etc.)