Add unit test to check that locales is propagated