Added the unit test for standard template, checking NameExist function

Please always use ```for my $Var``` instead of $_.