ensure that templates are also cleared before each test