Added unit test for decode_tv