Fix stub_record tests that seem to only fail in Ruby 1.9.2.

I may have imagined that the tests passed in Ruby 1.9.3, but I'm pretty
certain they did.

The tests failed because of various database queries being triggered in
this test which does not allow database access.