added more tests, improved current ones, in template.rs
added partial handiling
Merge pull request #47 from fleur/master

added partial handiling