Clean up InstructorCourseJoinAction #1893

As title, not much things to be changed. Just refactor and make the test cases be a little more detailed