added more tests to template.rs
Merge pull request #37 from fleur/master

added more tests to template.rs