### Body

Add unit test for changes in https://github.com/apache/airflow/pull/17305

### Committer

- [X] I acknowledge that I am a maintainer/committer of the Apache Airflow project.
tests/jobs/test_backfill_job.py
dag = self.dagbag.get_dag("test_start_date_scheduling")
        dag.clear()
        executor = MockExecutor(parallelism=16)
        job = BackfillJob(
            executor=executor,
            dag=dag,
            start_date=DEFAULT_DATE,
            end_date=DEFAULT_DATE + datetime.timedelta(days=1),
            run_backwards=True,
        )
        job.run()
        session = settings.Session()
        tis = (
            session.query(TI)
            .join(TI.dag_run)
            .filter(TI.dag_id == 'test_start_date_scheduling' and TI.task_id == 'dummy')
            .order_by(DagRun.execution_date)
            .all()
        )
        queued_times = [ti.queued_dttm for ti in tis]
        assert queued_times == sorted(queued_times, reverse=True)
        assert all(ti.state == State.SUCCESS for ti in tis)
        dag.clear()
        session.close()
    def test_reset_orphaned_tasks_with_orphans(self, dag_maker):