Refactor verify course id decorator and fixed tests.