tests: Make tests independent of locale settings.