Fix failing test in flexible_criterion_test
Fix MassAssignment error in user_test