Add a first suite of unit tests for templates