Add some setup for testing ActiveRecord.

Taken from groupdate: https://github.com/ankane/groupdate/blob/master/test/groupdate_test.rb