The Mahaabhaaratha has a fine story which proves the same point. The fact that God might assume terrible aspects in order to examine attainment and establish the truth of achievement is witnessed in the story of Mayuuradhwaja. The Paandavas celebrated the Aswamedha Yaaga (Horse Sacrifice), and as part of that ceremony released the chosen horse so that it may take its own course across the length and breadth of the land. Whoever stops and binds the horse is thereby challenging the sacrificant for a fight; he has to win back the horse, after defeating the audacious obstructionist!
The story of Emperor Sibi is an illustration of this truth. Though endowed with power and authority, prosperity and wealth, Sibi was a genuine Saadhak, having attained a high stage in detachment and the spirit of renunciation. God decided to discover whether his achievements were deep-rooted and unshakeable. Agni (the God of Fire) and Indhra (God of the Heavenly Regions) took on the forms of a dove and a hawk. The hawk (Indhra) pursued the dove (Agm) across the sky, until the frightened bird fell into the lap of Sibi sitting on his throne, pleading for protection from the hawk.
The story of Mohajith, a prince, is a good example of this highest type of detachment. Mohajith went to a sage in the forest and sought guidance in the spiritual path. The sage asked him whether he had conquered attachment, as his name indicated. The prince said that not only he but everyone in his kingdom had!
So the sage started to test the truth of this claim. The sage took the prince’s robes, soaked them in blood, and hastened to the palace gate with the gruesome story of the murder of the prince by some ruffians in the jungle.