It feels like this step should be in a more general location. Surely there are other tests that need to make sure a given user is enrolled in a course.