add tests for `{ :error, :badarg }` and `ArgumentError`