[PATCH v5 22/41] test: Move dm_test_init() into test-main.c