Refactor and modify test cases to be more detailed
Merge branch 'master' into Issue1893
[1893] Clean up InstructorCourseJoinAction

fixes #1893