Refactoring src tests as libraries with top level main.
refactor to top level main
Merge pull request #105 from financeCoding/refactor_unit_tests

Refactoring src tests as libraries with top level main.