Did you just spoil yourself on the entire game?
spoilers for those who want to play the game instead of reading a synopsisAlso, no. This is totally different, because up until this point Sora was the one whose light shone so bright that he could save everyone from the darkness. Here, it turned out to be a weakness and Riku, the one who earlier turned to darkness (and actually got to grow from experiencing failure instead of being perfect from the beginning) is the one who saves him for a change. It's actually awesome how that was deconstructed in this game.
So no, Riku did better on the test, but Sora got the opportunity to learn from it, so it's only a matter of time until he gains the mark of mastery. Possibly at the beginning of III, I assume.