Who says God is doing the testing.. God is merely allowing the testing to happen.. as he allowed Satan to be in the Garden of Eden and right over your shoulder.. A spirit seeks its own level.. and will find it.. Thats WHY we are here..
Jeremiah 1:4-5 - The word of the LORD came to me, saying, Before I formed you in the womb I knew you, before you were born I set you apart;
James does.
God is merely allowing the testing to happen..
Merely allows it? In Job He actively plans with Satan what is to be done and what is not to be done.
And with Abraham? There was no Satan there as far as I know. The testing was done by God and God alone.