Update minitest and fix some test failures