The purpose of a Nisayon (a test; literally, a means for elevation) is to bring a person’s powers from their potential into activation. In Torah, a test is always and only for the benefit of the one being tested. (Based on Ramban, Commentary on Bereishis 22:2)
yediya