Add tests for get_best_locale util function
Pass get_best_locale tests

Convert locales to lowercase before comparing them. Use correct exception type for iterator that doesn't find a next item.