add test coverage for courseaffils/lib.py