Make tests compatible with Rails 2.3