Refactor change locale test