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