Add test for tbuf