fix rails 4.2 testing