Test errors for arguments