Added a unit test for Course::userCanTake