Add test for addLocaleObject