Fix test for constructor attribute and add one for destructor.
Fix test for constructor attribute and add one for destructor.

lscube/feng,lscube/feng,winlinvip/feng,winlinvip/feng,winlinvip/feng,lscube/feng