Fix 0.0.5

* Add test cases
* Improve error handling
* Improve spec tasks