Moses said to the people, “Do not be afraid; for God has come in order to test you, and in order that the fear of Him may remain with you, so that you may not sin.” — Exodus 20:20
Most people have had their eyes tested at least once in their lives. Seeing 20/20 is a good thing. If the test has you seeing less than 20/20 you will probably find yourself with a prescription for glasses to improve your vision.
I found it interesting that this verse is 20:20. God desires us to see the sin in our lives for repentance and for avoidance from, to give us a reverence for Him and a real sense of judgement for sin.
The Israelites were tested in the wilderness because God wanted a humble nation whose heart was turned toward God in obedience and trust.
You shall remember all the way which the your God has led you in the wilderness these forty years, that He might humble you, testing you, to know what was in your heart, whether you would keep His commandments or not. — Deuteronomy 8:2
God loves you. God wants the best for you. Testing is to make you more aware (help you see 20/20) so you may fear, revere God.
Continually seeking Him,