robustify some template var tests