HasDealtWithTech returned true if the tech was queued up or started, which is offputting if you expect it to only return true if it has been researched like the function name suggest.
Added a Test version of the function, which still does count queued and started researching techs as finished.