Just in a similar way, you have the civil engineers checking the strength of the foundation of a building, before giving it certification of being fit for habitation.
God too tests the foundations to assess whether our Faith is true and runs deep within our hearts.
We have the case of Shiruthondar, an ardent devotee of Lord Shiva was also subjected to a foundation test by none other than the Lord himself, coming to him disguised as an ascetic. When Shiruthondar displayed his finer self by showing that he was truly emancipated and was having no attachment to the world, Lord Shiva came before him and said, "Worship Me as your own Self."
To which the reaction from Shiruthondar was that Lord, show to me your presence in all Creation and " then I shall worship Me, for then I can know that I am really You."
Lord Shiva offered him blessings him and he saw all as Light. The vision was the finale of his career in maaya. He merged as light merges in Light, without noise and without announcement. Even his body became a streak of light which rose up into the depths of space. This was the case of one who had the faith , running true and deep in his heart !