[PATCH v2 20/40] test: Move dm_test_init() into test-main.c