tests: add test of strbuf