Fixing error handling. Adding negative test.
First official release: 1.0.0.