What role does testing play in ʿinda al-imtiḥān?

Dialogue and Speech Acts — Questions, Promises, Challenges and Confessions