Update to minitest 5

Rebased minitest5 update against latest master, see #1701 / #1722