make tests run with rails 3.0.