Minor changes in strbuf.c and tests