Fixed TermUtils to not return occurrenceID twice. Creating test to ensure this and other things