ut: improve code coverage of tdm_helper.c