To fix the tests on rails 2.3, you can create the ActiveMerchantResponse using stubs.

```ruby
ActiveMerchant::ResponseError.new(stub(:code => "500", :message => "Internal Server Error", :body => some_json))
```