Why life SUCK so much

These question haunted me for a long time , I never got the answers from any religious book or from any religious scholar so I came up with my own answers here they are.

So does Allah not know if we will fail or pass the test , no He does not know till we actually fail or pass the test.
How do I know that ? Because I know He says in Quran that Allah hu kulay shay an Qadeer , it means Allah has powers to do anything and everything. So Allah has powers to not know something in advance if Allah so wills.
So Allah can make sure because of His powers that He does not want to know in advance the outcome of our test. If He already knew the outcome of our test then there would be no point in testing us. Then this question is also answered that if He is merciful then where is His mercy when something as horrendous as a human raping a baby happens ? Right ? So above is your answer.