Add assertTemplateName and assertNotTemplateName

More handy functions for testing the dispatch process.