Update
Add tests
Use single quote instead of backquote for "wrong number of arguments" error
Change type error message
Add tests for failure cases
Failure exit when exception occurred