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