Use bundler for test gem dependencies.

Replaces #31981 using my own fork.