[template] Do not test private properties
[template] Support callback based templates