Tests - Purpose of

Even as He hath revealed: ‘Do men think when they say “We believe” they shall be let alone and not be put to proof?’

Bahá’u’lláh, Kitáb-i-Íqán, pp. 8-9

Poverty, as decreed by Thee, hath been made the means for the revelation of Thy riches, and abasement a path leading to Thy glory, and sinfulness a cause for the exercise of Thy forgiveness. By them Thou hast demonstrated that to Thee belong Thy most excellent titles, and unto Thee pertain the wonders of Thy most exalted attributes.

Bahá’u’lláh, Prayers and Meditations by Bahá’u’lláh, p. 324

The Almighty hath tried, and will continue to try, his servants, so that light may be distinguished from darkness, truth from falsehood, right from wrong, guidance from error, happiness from misery, and roses from thorns.

Bahá’u’lláh, Kitáb-i-Íqán, pp. 8-9

Thou hast afflicted them for no other purpose except to proclaim Thy Cause, and to enable them to ascend into the heaven of Thine eternity and the precincts of Thy court.

Bahá’u’lláh, Prayers and Meditations by Bahá’u’lláh, p. 157

We have decreed that every long life shall in truth suffer decline and that every hardship shall be followed by ease, that perchance men may recognise the Gate of God as He Who is the eternal Truth, and verily God shall stand as witness unto those that have believed.

The Báb, Selections from the Writings of the Báb, p. 47-48

As to the second question: the tests and trials of God take place in this world, not in the world of the Kingdom.

‘Abdu’l-Bahá, Selections from the Writings of ‘Abdu’l-Bahá, p. 194