Fix an issue where the test result can be affected depending on the current locale settings of the machine running the tests.