fix rails3 tests