I understand our life here is a test, but I don't understand how it's going to be fair for everyone. I will tell you a real-life situation:
Tom and tim are twin brothers. Both of them lived a bad life by doing murder theft and all the evil activities until they reach 25 years old and tom died in an accident. I assume by the evil he did in his life he is going to be in hell. Now after tom died tim becomes Muslim and his life is changed. He prayed for mercy and only did good until he died later at the age of 60. So here how their test going to be fair. If somehow tim is going to heaven I am sure tom is going to complain. I know Allah knows what's best and if he lived long what it's going to be, but still he deserve a chance that tim had to be a fair test.