add test for put buffer string