REFACTOR + testcases for coreg.py module
moved tests/ folder to root dir