Fixed doc_id used in combination with context.searcher(), needs to be topLevelId rather than just docId

Improved test to catch this problem calling refresh more frequently and having the word to highlight in different positions in the text

Closes #4103