fix rails 4 tests