Rename json data file.
Update tests to handle more cases.
Rename test class.
Minor: set test as final.
Rename files.
Introduce TemplateService, related refactor and utils.