“Consider it pure joy, my brothers, whenever you face trials of many kinds, because you know that the testing of your faith develops perseverance.”  James 1:2
An incorrect understanding of this text may lead to the wrong conclusion. Lest we be thankful and joyous for the wrong things, James states in the verse following why we should be joyful; “that the trying of your faith worketh patience.” In other words, it is through these trials & testings that we actually grow. According to 1 Cor 10:13 God will not allow us to be tempted above what we can bear, so we can face our trials with confidence knowing that we can overcome them and that it is one of the ways in which God sovereignly uses to produce growth in us.