Use Minitest::Test if it is available

MiniTest::Unit::TestCase has been replaced with Minitest::Test on recent
versions of Minitest. Use it if available to avoid warnings.