Update minitest and fix tests