Rewrite test_fetch_langpack_invalid_path_fails to avoid DeprecationWarning