fix rails tests