Template tests

Tests for all template functions in a framework that should make it easier to write more in the future.
Added missing template functions to templates.md.
End isn't necessary here. See the test for split. If end is present, the template won't parse.