Test of statefull custom deleter in data_pointer.