Fixes #9, add a test for failure. The expected exception need to be fixed
Merge pull request #10 from harikt/fixdoc

Fixes #9, add a test for failure. The expected exception need to be fixed