support both minitest 4.7 and 5