Fix RegexpParser test bug in Ruby 1.9