Refactor JsonHanlder
Add test cases for i18n module