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