Add tests for has_course

and negative tests for get_course. (Moved here from merging to opaque_keys)