[PATCH v4 16/42] test: Move dm_scan_plat() to test_pre_run()