Minitest 5.1 compatibility

cc @RichardBlair