test the assign operator of shared ptr.