Why Does God Test?

After these things God tested Abraham and said to him, “Abraham!” And he said, “Here am I.” Genesis 22:1

Why does God test us? […]