fixed match_spec.rb to work on 1.8 and 2.0