Add tests for arity errors