Job was tested because God allowed it. Regardless of the reason he was tested, which if you check the post I replied to was the reason I suggested he read Job.
James 1:12-18
12 Blessed is a man who perseveres under trial; for once he has been approved, he will receive the crown of life, which the Lord has promised to those who love Him. 13 Let no one say when he is tempted, "I am being tempted by God"; for God cannot be tempted by evil, and He Himself does not tempt anyone. 14 But each one is tempted when he is carried away and enticed by his own lust. 15 Then when lust has conceived, it gives birth to sin; and when sin is accomplished, it brings forth death. 16 Do not be deceived, my beloved brethren. 17 Every good thing bestowed and every perfect gift is from above, coming down from the Father of lights, with whom there is no variation, or shifting shadow. 18 In the exercise of His will He brought us forth by the word of truth, so that we might be, as it were, the first fruits among His creatures. NAS