test_doc_id_of_path works