Pull out regression module
Refactor tests
Pull out tests
Rename main module