[PATCH 19/34] test: Expand implementation of ut_list_has_dm_tests()