Remove deprecation warnings when using minitest-rails 0.9 and higher

The following fixes were applied according to the upgrading doc:
https://github.com/blowmage/minitest-rails/wiki/Upgrading-to-0.9