Do not add '\0' to the end of outbuf
Revise test