Add tests for has_course
and negative tests for get_course.
Merge pull request #3900 from edx/dhm/test_has_course

Add tests for has_course