corrected test in the absence of C++11 support for smart pointers