test shared_ptr, string and char array