tests: added tests for formatTemplateFiles & formatLayoutTemplateFiles