One of the things that is consistent with God is testing. God gave one commandment to Adam and as long as Adam, not Eve, did not break that one commandment he was safely inside the will of God for His life.
The question then arises, why does God test us? We know from example after example that God knows when we will fail and when we will succeed before hand, so why? Since God knew us before we are born (Jer. 1:5) why? God must test us even though He knows the result before the test because we do not know and yet to build faith we must know, not guess or presume.
Before I went to Vietnam I trained for four years but I was untested. I passed the test of combat but I also witnessed others that had trained much longer than I as they failed the test and endangered the entire outfit as they failed. It is the same way with Christians. Until I stood the test of a real attack with rockets, mortars and enemy soldiers attacking me I had no real idea of what I would do. In like manor, we can read our Bibles for years and know that we must trust God no matter how bad the circumstance but until Satan is allowed, by God, to pull the rug from under our feet we do not know just how we will perform. (Job, all of it)
As we read the scriptures we see everyone in God's service tested. One, often thought of as a children's story is Sampson. God allowed Sampson to go into captivity, have his eyes blinded and to be used as a mule by the enemy. (Jud. 16:21) The removal of Sampson's hair didn't cost him his great strength, God removed that from him and the hair was symbolic of that. But in verses 28-30, when Sampson called upon God, God gave his strength back to him.
When Job was tested the scriptures are very clear that before he could be tested God had to allow Satan access to him. (Job 1:7-12) Just as Job was protected by God, so is the Believer today. An oft made mistake by New Christians is the idea that, “Now I'm a Christian and my troubles are over.” This is not true, what is true is that the tests are easier to complete because we can always go to God for help in completing these tests, that is exactly the point of them, anyway, so that we will know His presence and His power. (Psa. 46:10)
Many people think that God helps those that help themselves but that would make Psalm 46:10 a lie. We need to be careful here, the scriptures also teach that the sluggard is to be disregarded. (Prov. 20:4) If we do not work we do not eat, but when we are presented with the insurmountable problem, the one we see no hope for, then we stand still, call on God and watch. When we see a door mysteriously open for us, then we join God in what He is doing and our problem is solved.
When we depend on God our problems grow to be less vexing.