Believing While Not Being Satisfied
Salam, Well to begin with, let’s first contemplate upon what God has said, the Quran. Read the Quran, ponder over it. Try to contemplate what the verses mean. Go through it leaving bias aside and analyse the book of God. Secondly the set of circumstances you mentioned above, and as @faraz siddiqui pointed out, each of them has a positive impact that you can’t see at present. This may seem to be a fallacy to some, however when one realises that whatever happens indeed happens by the will of God, God who acts with wisdom and knowledge makes it happen for a reason, and then when one realises that human knowledge is relative (we are not omnipotent we do not know the future, nor do we know every aspect of the past and present) we begin to understand. When one argues that “life isn’t a test”, what they’re doing is letting a bias hinder their objectivity leading them to becoming subjective and this is the test. The problems you mentioned above happen for two basic reason the first to test one’s strenth in regards to faith and conduct, and for another purpose unknown to us. I hope this helps.