Fixed issues when packages are not defined and added a few unit tests
bumped version to 0.0.5