Fix locale-specific bug in tests.