[fix] course exams fix and small refactor