Added cleanup to testBuildLocales()