improve code-coverage of tlv.c