testsuite: add tests for strbuf