Rails 6.1, Ruby 3.0.0: tests error as they cannot load rexml

I've created a new Rails 6.1 application from scratch with Ruby 3.0.0. I've run db:create and generated a single model with some string columns, followed by rails db:migrate. I ran rails test but got