Implement some tests and add the includeTemplate method.