[PATCH v5 16/41] test: Move dm_scan_plat() to test_pre_run()