A question that should be asked about Jesus being tested is: Could he actually fail? Because God can't actually sin, so it would be impossible for him to fail under any immoral pressures. So even if the moral deck was stacked against him like no other human being he'd still pass.
That's a subject of debate. Could Christ have sinned? Speaking personally, I disagree with the above reasoning. I do not believe it was a question of divine power but a question of Christ’s personal choice. Adam and Eve were created perfect. In them was no propensity to sin. They did though have the freedom to choose. They could either heed the voice of God or disobey it. As we know, they chose the latter. In the incarnation, Christ was placed in the same sinless position as Adam and Eve when they were created (Christ was sinless), but His human nature, unlike Adam and Eve’s nature before the fall, was fallen human nature. This made Christ’s test far greater than Adam’s.
Christ’s mission on earth was not to show that God, as God, could overcome sin, but that fallen humanity, when united with divine nature, could do so. In other words, by choosing to rely upon divine power, fallen humanity could obey God. This is what Christ proved in the incarnation. By choosing to rely upon His heavenly Father, He did, in His fallen human nature, overcome sin. As the apostle Paul said, “For what the law could not do, in that it was weak through the flesh, God, sending his own Son in the likeness of sinful flesh, and for sin, condemned sin in the flesh” (Romans 8:3).
KJV Hebrews 2:16-18
16 For verily he took not on him the nature of angels; but he took on him the seed of Abraham.
17 Wherefore in all things it behoved him to be made like unto his brethren, that he might be a merciful and faithful high priest in things pertaining to God, to make reconciliation for the sins of the people.
18 For in that he himself hath suffered being tempted, he is able to succour them that are tempted.
Unless there is a possibility of yielding, temptation is no temptation. Temptation is resisted when man is powerfully influenced to do a wrong action; and, knowing that he can do it, resists, by faith, with a firm hold upon divine power. This was the ordeal through which Christ passed. He could not have been tempted in all points as man is tempted, had there been no possibility of his failing. He was a free agent, placed on probation, as was Adam, and as is every man.
KJV Hebrews 4:15
15 For we have not an high priest which cannot be touched with the feeling of our infirmities;
but was in all points tempted like as we are, yet without sin.
When we are tempted, it is with the possibility of sinning, and more than that, there's the risk of eternal loss except we repent and claim the blood of Christ as the redemption price that saved us.
If Christ had sinned, the risk was exponentially greater, because He had no-one to die on His behalf. These facts magnify the incredible love God and Christ has for man.