[PATCH v3 15/41] test: Move dm_scan_plat() to test_pre_run()