The God of the Hebrews and Christians is a God who tests souls. Read the following.
"Wherefore seeing we also are compassed about with so great a cloud of witnesses, let us lay aside every weight, and the sin which doth so easily beset us, and let us run with patience the race that is set before us,
"Looking unto Jesus the author and finisher of our faith; who for the joy that was set before him [in Heaven] endured the cross, despising the shame, and is set down at the right hand of the throne of God.
"For consider him that endured such contradiction of sinners against himself, lest ye be wearied and faint in your minds.
"Ye have not yet resisted unto blood, striving against sin.
"And ye have forgotten [obviously the disciples, being yet human] the exhortation which speaketh unto you as unto children, My son, despise not thou the chastening of the Lord, nor faint when thou art rebuked of him:
"For whom the Lord loveth he chasteneth, and scourgeth every son whom he receiveth.
"If ye endure chastening, God dealeth with you as with sons; for what son is he whom the father chasteneth not?
"But if ye be without chastisement, whereof all are partakers, then are ye ******** [Fatherless], and not sons." (Hebrews 12:1-8; KJV).
The Holy Bible is replete with many examples of God trying the righteous. See Hebrews chapter 11 for the entire list of all those who were tried by God and succeeded.
To wit:
"The LORD trieth the righteous." (Psalm 11:5).
One thing about God is that He will try you as anybody else to see what your made of--of course He knows, but you don't and neither do we.