test free char array after copy content to string obj