Fixed imports to work in IEP.
Added a tests sub-modules and put in some unit tests.