Trying to overthrow a government is not terrorism.
True; "trying to overthrow a government" is a goal, "terrorism" is a means deployed to achieve a goal. You can do the former without the latter or the latter without the former, but the Cuban Project had the goal of overthrowing a government and used terrorism as a major one of its means.