fix docID to document path mapping in indexer; add more tests for the indexer