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

@pmjones could you have a look and fix the expected exception as callable ?