But wasn't Job tested by Satan because of his pride?
Job was not tested because of his pride.
Job 1:1 There was a man in the land of Uz, whose name was Job; and that man was perfect and upright, and one that feared God, and eschewed evil.
Job 1:8 And the LORD said unto Satan, Hast thou considered my servant Job, that there is none like him in the earth, a perfect and an upright man, one that feareth God, and escheweth evil?
God said Job was a perfect and an upright man, so Job could of not had pride in that condition, for God resists the proud, but gives grace unto the humble, and God favored Job.
Job 1:9 Then Satan answered the LORD, and said, Doth Job fear God for nought?
Job 1:10 Hast not thou made an hedge about him, and about his house, and about all that he hath on every side? thou hast blessed the work of his hands, and his substance is increased in the land.
Job 1:11 But put forth thine hand now, and touch all that he hath, and he will curse thee to thy face.
Job 1:12 And the LORD said unto Satan, Behold, all that he hath is in thy power; only upon himself put not forth thine hand. So Satan went forth from the presence of the LORD.
Satan said that Job fears God, and acknowledges Him as his God, only because God has blessed Job, and gave him a beautiful life where he flourished, and his children flourished, and the works of his hands flourished, and was protected from his enemies.
But Satan said if you take away all that he has, and make his life miserable, and not to flourish anymore, he will curse you to your face, for Job only cares about You because you bless him abundantly, more than he needs, and bless his children too.
So God allowed Satan to have power over all Job had including his children.
Job 1:5 And it was so, when the days of their feasting were gone about, that Job sent and sanctified them, and rose up early in the morning, and offered burnt offerings according to the number of them all: for Job said, It may be that my sons have sinned, and cursed God in their hearts. Thus did Job continually.
Also Job offered burnt offerings for his children, so they would be right with God, which I believe that God would of not allowed Satan to go through having power over all Job had if his children were not right with God, which He said precious in the sight of Him is the death of His saints, for they are then with Him.
But Job endured and got through the trial, and did not curse God, and was blessed even more at the latter end than at the beginning.
Job 42:10 And the LORD turned the captivity of Job, when he prayed for his friends: also the LORD gave Job twice as much as he had before.
Job 42:12 So the LORD blessed the latter end of Job more than his beginning: for he had fourteen thousand sheep, and six thousand camels, and a thousand yoke of oxen, and a thousand she asses.
Job 42:13 He had also seven sons and three daughters.