ut: improve code coverage of tdm_capture.c