added 'isTemplate' flags to mocks