Refactor code
Increase coverage for StudentAttributesFactoryTest
Refactor and edit test cases
Add missing test cases for StudentAttributes
Remove condition check for team of a student to be null
Suppress warning
Revert back to assertPostParamNotNull
Merge branch 'master' into Issue1856
[1856] Clean up InstructorCourseEnrollSaveAction

fixes #1856