fix rails 2 tests