fix bug related to gsub in WithTest.rb for ver 2.0