fix #1 / Problem with generating mocks for templates.