Fix intermittent test failure when current_user.id is equal to course.id