[PATCH 21/30] test: Move dm_test_destroy() into test-main.c