test for debugging info in Template; small fix for it