url_tools_tests: handle code:priv_dir errors