Add a require 'rubygems' to test/rgen_test.rb