Fix tests against Rails 3.0