FLUID-4988: Added test cases for i18n.js, fixed the broken unit tests and addressed other comments on the pull request.