Where in Scripture does it say 'test'? From here on, you're into your own assumptions and ill-informed speculation.
If Eve had not been beguiled, and inturn not beguiled Adam, the two would have remained in the garden. However, Adam and Eve failed so they were expelled from paradise because...