add template test to identify pointer type