adds unittest for source_base.py