Added template importer from string and tests.