In everyone’s life, there has came a time when all things seemed to be lost. All hope seemed to disappear. However, this is part of a divine plan. One we will never truly understand. Allah has said, through his messenger, that all believers will be tested.
From this, it could be understood that self-proclamation of one’s belief are merely spoken words. Those words have to be substantiated. Of course, Allah knows everything. The test is not for Him to evaluate you. The test is for you to know if what you said is sincerely true. And even in the darkest times of our lives, we must always remember that Allah is always with us.