Test editTerm