fix test fails by minitest 5.0.6

Lock minitest to 4.7.x.