Tests for std::shared_ptr.