Added l10n.js unit tests (bug 851582)