fixing the rails tests