compile templates for unit tests