fix failing tests for rails 3.0