Test case for the template manager.