[SPARK-34596][SPARK-34607][SQL][FOLLOWUP][TESTS][3.1] Add PlanTest. testFallback and use it
#31764
+27
−8
PlanTest. testFallback and use it
#31764