Fixing the tests- fixing a bug in resolving locales