Handle exception correctly in unit-test
Merge pull request #12 from caskdata/feature/fix-unit-test

Handle exception correctly in unit-test