Fix tests for minitest < 4.7