Move tests for better utility

Having the test inside the module didn't allow
me to see issues with visibility and utilization
of the crate/modules. Moving them into tests directory
as well as fixing up visibility issues.