Refactor code
Add success test cases
Add failure test case
Add comments
Merge branch 'master' into Issue1905
[1905] Clean up InstructorCourseRemindAction

fixes #1905