utest: improve the test coverage for tdm_output.c