Template isa<> - first implementation and first tests