Update Minitest APIs and Capybara setup to fix CI.