Fix test failure on `rubygems-head`

There's a regression in which RubyGems ignore the version of the
packaged gem file on `rubygems-head`. This is a workaround to make sure
that RubyGems install a correct version of the test gem.

See also https://github.com/rubygems/rubygems/issues/875