TST: add tests for check_prefixes.
TST: test get_writable_local_dir