some cleanups to the template engine/source tests

Just some minor things and a missing test.  I noticed these while
updating Sanford's template api to match Deas'.

No behavior changes - just test cleanups.