Test deleteTerm