If you are tested and pass, you are saved because you passed the test.
If you are tested and fail, you are condemned because you failed the test.
In both scenarios, there is no need for your allah's grace. You are saved or condemned entirely by your own effort.