Thankfully, my test score was just a little bit above the average score / failing score.
I am so glad that I managed to get the credit for this class.
ご質問ありがとうございます。
"Thankfully, my test score was just a little bit above the average score / failing score."=「幸い、テストの平均点・赤点よりも少し点が高かった。」
"I am so glad that I managed to get the credit for this class."=「このクラスの単位を取れて本当によかった!」
ご参考に。