buffer: include cstring header
Conv: correct testing cases