Fix tests in Rails 3.