Why are we tested

All of this is so that Allah proves to you that you deserve jannah/paradise. If you were to wake up in hell with out knowing why you were there , youd think it’s unfair and Allah is Al Adl ( the just) but just to prove to you and to yourself that you deserved your destination he put you on earth to test you. He knows all the choices/ outcomes that you will make or even thjnk of ; what it/ if only.

Its like the matrix, we are living in a dream world , but there is also that plain of existence where diff choices have been made to result to a certain out come, qadar, destiny can shift depending on our choices, jannah or nar/hell.

This is the reason why we are in this world, to worship god but at the same tome to be tested on our belief after the message has been presented to us: