By leaving Jesus alone in the wilderness as He did Adam after giving him the command not to eat of the tree of knowledge of Good and evil. God removed His manifest presence from them both by stepping back and watching how they handled themselves and what they would draw upon for strength in the time of their temptation, given the power of Satan to deceive was more than any "unlearned" human could handle. Adam responded with nothing. Jesus, "It is written" was His mantra.
Adam probably had as much relationship with The Word of God as Jesus did given he "walked and talked with him in the cool of the day". However, in this it didn't benefit him. He failed, demonstrating the need for something on the inside of him Holy that would connect with his spirit. It being on the outside of him was of little value when dealing with "Vanity" and sin "couching at the door".
Had Adam done well, would he not have been accepted? Absolutely! Where else is this scene played out aside from Cain, before he slew Abel?
Jesus, from a new born, learned the written word and succeeded by the deposit of it into His Soul.
In this we can see just how important it is to digest the written word to arrive at a sustaining message/understanding of God and what is at stake. In otherwords, throw out doctrines from commentaries that won't sustain in such times of deception and temptation, doctrines that won't take us home to our Fathers House. Doctrines that don't satisfy by continually speaking of escaping damnation, adnausm. [Like we have never heard it all before.]
BTW: It was not so much God testing Jesus but God allowing Satan to test Him to see how much He 'KNEW'.
Remember, in this Jesus was given to protect the Word within Him, the Word that connected Him, as a human, to the Godhead. Fail in that and the whole thing would have collapsed.
Hope that helps.