Add tests for freemarker factory.