Backport test suite to Minitest 4 so we can test against Rails 4.