Fix Minitest 5 compatibility

The Runnable#__name__ was renamed to Runnable#name in Minitest 5, see https://github.com/seattlerb/minitest/blob/ab412f86/History.txt#L197
A check is added to support both old and new Minitest versions.