Fix getLocale() JSDoc
Add test for Dictionary class