rounding out corner case in course access
some cleanup and additional edge case testing