fix tests for rails 3.0.