also add specific error type checking for invalid JSON test
This now aligns with the (pretty strong) golang convention of the package name matching the path basename