[ted] Remove unused import and modernize test