test for Autorelease in c++