Add a couple of template operations

Fix exports
Add template operation tests