add back testing for term retrieval