Don Juan was described by a contemporary as "a school of Atheism." Tartuffe so stirred up the clergy that some clerics wanted the playwright burned as a heretic! Instead, he was excommunicated.
"[Frazer] was not an Atheist. I would say perhaps that he held his judgment in suspense." That is the common definition of an Agnostic.