Add tests for the template parsing.