test of shared_ptr