Naive update to current syntax
more tests
Fail with exn on test decode errors
Remove calls to json_to_array, and bump version (as api has changed).  Fixes #6