test for invalid variables (e.g. {var}%, "% {var}")