Added pos parameter to Bad function matching in Test* and updated template generator to not create parameters for special token types