testing usage of template and new/delete