Fix test to run in db transaction

Fix for the minitest-rails issue #162.

https://github.com/blowmage/minitest-rails/issues/162