Fix test filter_by_term.