Fix bug
Fix bug in Invalid key test case for InstructorCourseJoinConfirmationUITest

fixes #1935
Merge branch 'master' into Issue1931
Refactor code