fixed bug in the locale selection code of run_unit_tests