Start of converting the module to a proper package.
Added tests for the package.