Excellent idea. Prospective immigrants should be admitted solely on the basis of merit and that needs to include passing the values test. If you are unwilling to conform to American values, you need not apply to come here.
"Do you support LGBTQAZGD+1.7XYZ? agenda?"
"Do you believe in unrestricted government-funded abortion?"
"Do you believe that the government should redistribute wealth?"
"Do you believe the white man is to blame and should be punished, for everything?"
The average illegal immigrant from Honduras or El Salvador would say 'no' to the first two and 'hell yes' to the second two.