test smart_ptr deleter.