Fix error handling
Add failing test
Bump to 0.2.0