create buffer with size of string
adds a simple sanity test