This discussion mentions that besides the test with Zuleica/Zuleicha (Potiphar's wife, according to the reference 166 Book of Yasher cited on p.371 in this Midrash book), there were two even more severe tests mentioned in the Talmud
Joseph is the only one referred to as HaTzadik/the righteous one. His life mirrors the actions of the Supernal Foundation, whose role in the "downward" progression of G-d's flow is to bring blessing and bounty to the lower world. He was severely tested [the Talmud brings 2 examples of even greater testing], and passed.
Would someone kindly point me towards a descriptions of those tests (preferably with an English translation)?