fix unit test
improve error handling and reporting
rename package
add more tests