tests for the template manager