“In this you greatly rejoice, though now for a little while, if need be, you have been grieved by various trials, (7) that the genuineness of your faith, being much more precious than gold that perishes, though it is tested by fire, may be found to praise, honor, and glory at the revelation of Jesus Christ,” 1 Peter 1:6-7
Faith is placed on trial when you are given a seemingly legitimate reason to rebel against God as the result of current circumstances and the decisions of others. Logically the thing to do would be to disobey God and partake of the forbidden, or curse God for relief that does not seem to be on the horizon or even a part of the plan. One is for self-gratification and the other is to remedy the effect of constant misery. Faith rises in the midst of trials as being more precious than whatever the outcome would have been if you had relented in the midst of your greatest and most fierce battles. It is precious because in the end, God will prove Himself to be faithful. He will reward those who do not cave in under pressure, and will avenge them from their enemies. It is also the proof of character to further convince you of the Holy Spirit yet working in you in spite of the challenges you may be facing. You will see Jesus Christ in a way that would otherwise be impossible unless you had passed the test. It is worth it to maintain your focus in the midst of trials. There will be great rejoicing on the part of the faithful.