Hi,
I had a similar problem and solved it by changing the data source implementation.
I found that my tests passed if I ran them against a MySQL database but failed against hsqldb. After some experimentation I found that the problem was the data source I was using. I switched to org.apache.commons.dbcp.BasicDataSource and it now works.
I hope this helps!
Cheers