Ensure backward compatibility between Minitest 5 and 4

Define Minitest::Test in case we are running the gist under Minitest 4
and avoid relying on MiniTest::Unit::TestCase to avoid displaying
warning on version five.

[ci skip]
Merge pull request #13505 from robin850/patch-13

Ensure backward compatibility between Minitest 5 and 4